<!DOCTYPE html>
<html lang="zh-CN">

<head>
	<meta charset="UTF-8" />
	<meta name="author" content="wangbo" />
	<meta http-equiv="X-UA-Compatible" content="IE=edge" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0" />
	<title>数组</title>
</head>

<body>
	<script>
		// 二维数组？
		// 通过两个下标（索引）来确定一个元素。二维数组可以理解为数组的数组。二维数组组织为矩阵，可以表示为行和列的集合。
		var arr1 = [
			[1, 2, 3, 9], [3, 4, 5, 10], [6, 7, 8, 11]
		]
		var arr_1 = [
			[], []
		]
		let arr2 = [];
		let arr_2 = [];
		arr2[0] = [1, 2, 3, 4, 5, 6];
		arr2[1] = [10, 20, 30, 40, 50, 60]
		console.log(arr_1,arr2);
		console.log(arr1,arr2);
		// 对象的模式
		var arr3 = new Array(new Array(1, 2), new Array("a", "b"));
		var arr4 = new Array();
		arr4[0] =new Array(1, 2);
		arr4[1] =new Array("a", "b")
		console.log(arr3);
		console.log(arr4);
	</script>
</body>

</html>